<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./css/both.css" />
    <script src="./both.js"></script>
    <style>
      body {
        display: flex;
      }
      div {
        height: 200px;
        width: 200px;
      }
      .item1 {
        background-image: linear-gradient(red, blue);
      }
      .item2 {
        background-image: linear-gradient(to right, red, blue);
      }
      .item3 {
        background-image: linear-gradient(135deg, red, blue);
      }
      .item4 {
        background-image: linear-gradient(45deg, red, blue);
      }
      .item5 {
        background-image: linear-gradient(red, green, blue);
      }
      .item6 {
        background-image: linear-gradient(
          to right,
          red,
          yellow,
          green,
          blue,
          violet
        );
      }
      .item7 {
        background-image: linear-gradient(to right, transparent, red);
      }
      .item8 {
        background-image: repeating-linear-gradient(
          red 10%,
          yellow 15%,
          green 20%
        );
      }
    </style>
  </head>
  <body>
    <div class="item1"></div>
    <div class="item2"></div>
    <div class="item3"></div>
    <div class="item4"></div>
    <div class="item5"></div>
    <div class="item6"></div>
    <div class="item7"></div>
    <div class="item8"></div>
  </body>
</html>
